<html>
<head>
<script type="text/javascript">
function $(id){ return document.getElementById(id) } var char2entity = { "'" : '&#39;', '"' : '&quot;',  '<' : '&lt;', '>' : '&gt;',  '&' : '&amp;'}; function encode_entities(str) {   var rv = '';  for (var i = 0; i < str.length; i++) {    var ch = str.charAt(i);    rv += char2entity[ch] || ch;  }   return rv;} function do_encode(e){  $('dst').value = encode_entities(e.value)}
</script>
</head>
<body>
<b>Enter Code:</b>
<textarea cols="40" onchange="do_encode(this)" onkeyup="do_encode(this)" rows="10" style="font-family: monospace; height: 10em; width: 40em;"></textarea>

<br>
<hr color="white">
<b>Parsed Code</b>
<textarea cols="40" id="dst" onclick="this.select()" onfocus="this.select()" readonly="readonly" rows="10" style="font-family: monospace; height: 10em; width: 40em;"></textarea>
<br>
<br>
<br>
<left><small> Copyright &copy; 2012 All Rights Reserved by Olusegun Fapohunda of <a href='http://www.justnaira.com/'>Justnaira</a></small></left>
</body>
</html>